home *** CD-ROM | disk | FTP | other *** search
- Path: news.crystalball.com!news
- From: Larry Weiss <lfw@oc.com>
- Newsgroups: comp.lang.c
- Subject: Re: Checking For Keyboard Input ( off topic )
- Date: Tue, 27 Feb 1996 11:28:08 -0600
- Organization: crystalball.com
- Message-ID: <31333F28.76BD@oc.com>
- References: <cerebus.34.000DD98A@voicenet.com> <4gqriq$qf2@maureen.teleport.com> <3131EA31.167E@mozart.bme.ohio-state.edu> <4gut23$5l9@news-srv2.fmr.com>
- NNTP-Posting-Host: external.oc.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- William A. Bailey wrote:
- >
- > Xiaoyi Wu <xiaoyi@mozart.bme.ohio-state.edu> wrote:
- > >GHouck wrote:
- > >> cerebus@voicenet.com (aLEX) wrote:
- > >> >Hello fellow C programmers,
- > >> > Is there anyway to check if keyboard input has been entered without
- > >> >actually stalling the excution of the code until the user presses a key.
-
- > >> aLEX,
- > >> There is if you're using Borland on DOS/Windows: there is a function called
- > >> kbhit()
- > >> If a key has been hit, it returns a non-zero value, else it returns zero. If
- > >> one is available you can then get it with another call.
- > >> Yours, Geoff Houck
- > >
- > >What about Unix?
- > Use the select function.
-
-
- This subject is off topic for comp.lang.c
-